package mapping

import (
	"simcard/model"
	"simcard/model/entity"
)

// SimCardAgentsEntityToDto entity data transfer
func SimCardAgentsEntityToDto(simCardAgents []*entity.SimCardAgent) []*model.SimCardAgentInfo {
	out := make([]*model.SimCardAgentInfo, 0, len(simCardAgents))
	for _, c := range simCardAgents {
		out = append(out, SimCardAgentEntityToDto(c))
	}
	return out
}

// SimCardAgentEntityToDto entity data transfer
func SimCardAgentEntityToDto(e *entity.SimCardAgent) *model.SimCardAgentInfo {
	return &model.SimCardAgentInfo{

		Id: e.Id,

		Name: e.Name,

		Code: e.Code,

		Description: e.Description,

		Balance: e.Balance,

		CreatedAt: e.CreatedAt,

		UpdatedAt: e.UpdatedAt,
	}
}
